home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / dist / readline / Makefile.dos < prev    next >
Encoding:
Makefile  |  1992-02-22  |  5.8 KB  |  230 lines

  1. # This file was generated automatically by configure. Do not edit.
  2. target_makefile_frag =
  3. host_makefile_frag =
  4. CROSS=-DCROSS_COMPILE
  5. ALL=all.cross
  6. host_alias = go32
  7. host_cpu = i386
  8. host_vendor = dj
  9. host_os = dos
  10. version_path = 
  11. target_alias = h8300hds
  12. target_cpu = h8300
  13. target_vendor = hitachi
  14. target_os = hds
  15. subdir =
  16. unsubdir = .
  17. VPATH = .
  18. #
  19. # Makefile
  20. #   Copyright (C) 1990, 1991 Cygnus Support
  21. #
  22. # This file is free software; you can redistribute it and/or modify
  23. # it under the terms of the GNU General Public License as published by
  24. # the Free Software Foundation; either version 2 of the License, or
  25. # (at your option) any later version.
  26. # This program is distributed in the hope that it will be useful,
  27. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  28. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  29. # GNU General Public License for more details.
  30. # You should have received a copy of the GNU General Public License
  31. # along with this program; if not, write to the Free Software
  32. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  33. #
  34.  
  35. #
  36. # Makefile for readline and history libraries.
  37. #
  38.  
  39. srcdir = .
  40.  
  41. prefix = /usr/local
  42.  
  43. bindir = $(prefix)/bin
  44. datadir = $(prefix)/lib
  45. libdir = $(prefix)/lib
  46. mandir = $(datadir)/man
  47. man1dir = $(mandir)/man1
  48. man2dir = $(mandir)/man2
  49. man3dir = $(mandir)/man3
  50. man4dir = $(mandir)/man4
  51. man5dir = $(mandir)/man5
  52. man6dir = $(mandir)/man6
  53. man7dir = $(mandir)/man7
  54. man8dir = $(mandir)/man8
  55. man9dir = $(mandir)/man9
  56. infodir = $(datadir)/info
  57. includedir = $(prefix)/include
  58. docdir = $(datadir)/doc
  59.  
  60. SHELL = /bin/sh
  61.  
  62. INSTALL = install -c
  63. INSTALL_PROGRAM = $(INSTALL)
  64. INSTALL_DATA = $(INSTALL)
  65.  
  66. AR = ar
  67. AR_FLAGS = qv
  68. BISON = bison
  69. MAKEINFO = makeinfo
  70. RANLIB = ar rvs
  71.  
  72. #### Host, target, and site specific Makefile fragments come in here.
  73. ###
  74.  
  75. # Define TYPES as -DVOID_SIGHANDLER if your operating system uses
  76. # a return type of "void" for signal handlers.
  77. TYPES = -DVOID_SIGHANDLER
  78.  
  79. # HP-UX compilation requires the BSD library.
  80. #LOCAL_LIBS = -lBSD
  81.  
  82. # Xenix compilation requires -ldir -lx
  83. #LOCAL_LIBS = -ldir -lx
  84.  
  85. # Comment out "-DVI_MODE" if you don't think that anyone will ever desire
  86. # the vi line editing mode and features.
  87. READLINE_DEFINES = $(TYPES) -DVI_MODE
  88.  
  89. MINUS_G=-g
  90. DEBUG_FLAGS = $(MINUS_G)
  91. LDFLAGS = $(DEBUG_FLAGS) 
  92. H_CFLAGS=-D__MSDOS__ -D__GO32__
  93. CFLAGS = $(H_CFLAGS) $(DEBUG_FLAGS) $(USG) -I. $(LOCAL_INCLUDES) $(CPPFLAGS) $(READLINE_DEFINES)
  94.  
  95. # A good alternative is gcc -traditional.
  96. #CC = gcc -traditional
  97. RM = rm
  98. CP = cp
  99.  
  100. LOCAL_INCLUDES = -I$(srcdir)/../
  101.  
  102. CSOURCES = readline.c history.c funmap.c keymaps.c vi_mode.c \
  103.        emacs_keymap.c vi_keymap.c
  104.  
  105. HSOURCES = readline.h chardefs.h history.h keymaps.h
  106. SOURCES  = $(CSOURCES) $(HSOURCES)
  107.  
  108. DOCUMENTATION = readline.texi inc-read.texi \
  109.         history.texi inc-hist.texi
  110.  
  111. SUPPORT = COPYING Makefile $(DOCUMENTATION) ChangeLog
  112.  
  113. THINGS_TO_TAR = $(SOURCES) $(SUPPORT)
  114.  
  115. ##########################################################################
  116.  
  117. STAGESTUFF = *.o
  118.  
  119. all: libreadline.a
  120.  
  121. info:
  122.     echo FIXME
  123.     echo FIXME
  124.     echo FIXME
  125.  
  126. clean-info: force
  127.     -rm -f *.info*
  128.  
  129. history.info: $(srcdir)/history.texi
  130.     $(MAKEINFO) -o history.info $(srcdir)/history.texi
  131.  
  132. readline.info: $(srcdir)/readline.texi $(srcdir)/inc-read.texi
  133.     $(MAKEINFO) -o readline.info $(srcdir)/readline.texi
  134.  
  135. libreadline.a:    readline.o history.o funmap.o keymaps.o tilde.o vi_mode.o
  136.     -$(RM) -f libreadline.a
  137.     $(AR) $(AR_FLAGS) libreadline.a readline.o history.o funmap.o keymaps.o tilde.o vi_mode.o
  138.     $(RANLIB) libreadline.a
  139.  
  140. readline.o:    readline.h chardefs.h  keymaps.h history.h readline.c vi_mode.c
  141. history.o:    history.c history.h
  142. funmap.o:    readline.h
  143. keymaps.o:    emacs_keymap.c vi_keymap.c keymaps.h chardefs.h keymaps.c
  144.  
  145. tilde.o:    $(srcdir)/../glob/tilde.c
  146.     $(CC) -c $(CFLAGS) $(srcdir)/../glob/tilde.c
  147.  
  148. libtest:    libreadline.a libtest.c
  149.     $(CC) -o libtest $(CFLAGS) $(CPPFLAGS) -L. libtest.c -lreadline -ltermcap
  150.  
  151. readline: readline.c history.o keymaps.o funmap.o readline.h chardefs.h vi_mode.o
  152.     $(CC) $(CFLAGS) $(CPPFLAGS) $(READLINE_DEFINES) \
  153.         $(LOCAL_INCLUDES) -DTEST -o readline readline.c funmap.o \
  154.          keymaps.o history.o vi_mode.o -L. -ltermcap
  155.  
  156. readline.tar:    $(THINGS_TO_TAR)
  157.         tar -cf readline.tar $(THINGS_TO_TAR)
  158.  
  159. readline.tar.Z:    readline.tar
  160.         compress -f readline.tar
  161.  
  162. install:
  163.         $(INSTALL_DATA) libreadline.a $(libdir)/libreadline.a
  164.         $(RANLIB) $(libdir)/libreadline.a
  165.         [ -d $(includedir)/readline ] || mkdir $(includedir)/readline
  166.         $(INSTALL_DATA) $(srcdir)/readline.h $(includedir)/readline/readline.h
  167.         $(INSTALL_DATA) $(srcdir)/keymaps.h $(includedir)/readline/keymaps.h
  168.         $(INSTALL_DATA) $(srcdir)/chardefs.h $(includedir)/readline/chardefs.h
  169.  
  170. install-info: info
  171.     echo FIXME
  172.     echo FIXME
  173.     echo FIXME
  174. #        for i in *.info* ; do \
  175. #            $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  176. #        done
  177.  
  178. includes:
  179.         if [ ! -r $(INCDIR)/readline ]; then\
  180.          mkdir $(INCDIR)/readline;\
  181.          chmod a+r $(INCDIR)/readline;\
  182.         fi
  183.         $(INSTALL_FILE) $(srcdir)/readline.h $(INCDIR)/readline/
  184.         $(INSTALL_FILE) $(srcdir)/keymaps.h $(INCDIR)/readline/
  185.         $(INSTALL_FILE) $(srcdir)/chardefs.h $(INCDIR)/readline/
  186. clean:
  187.         rm -f $(STAGESTUFF) *.a *.log *.cp *.tp *.vr *.fn
  188.         rm -f *.aux *.pg *.toc
  189.  
  190. $(DESTDIR)/libreadline.a: libreadline.a
  191.  
  192. # Copy the object files from a particular stage into a subdirectory.
  193. stage1: force
  194.     -mkdir stage1
  195.     -mv $(STAGESTUFF) stage1
  196.  
  197. stage2: force
  198.     -mkdir stage2
  199.     -mv $(STAGESTUFF) stage2
  200.  
  201. stage3: force
  202.     -mkdir stage3
  203.     -mv $(STAGESTUFF) stage3
  204.  
  205. against=stage2
  206.  
  207. comparison: force
  208.     for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
  209.  
  210. de-stage1: force
  211.     -(cd stage1 ; mv -f * ..)
  212.     -rmdir stage1
  213.  
  214. de-stage2: force
  215.     -(cd stage2 ; mv -f * ..)
  216.     -rmdir stage2
  217.  
  218. de-stage3: force
  219.     -(cd stage3 ; mv -f * ..)
  220.     -rmdir stage3
  221.  
  222. force:
  223.  
  224. # with the gnu make, this is done automatically.
  225.  
  226. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  227.     $(SHELL) ./config.status
  228.